Skip to content

fix: resolve relative links in get-contributing.sh sync script (#2416) - #2427

Merged
bjohansebas merged 2 commits into
expressjs:mainfrom
mkco0:fix/2416-triager-guide-link
Jul 5, 2026
Merged

fix: resolve relative links in get-contributing.sh sync script (#2416)#2427
bjohansebas merged 2 commits into
expressjs:mainfrom
mkco0:fix/2416-triager-guide-link

Conversation

@mkco0

@mkco0 mkco0 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #2416

On the contributing page, the "triage process document" link returns a 404 on GitHub.

The link text comes from docs/GOVERNANCE.md in expressjs/discussions, where it's written as a relative path: contributing/triager-guide.md. That works on GitHub because the file lives under docs/, so the real target is docs/contributing/triager-guide.md.

When .github/scripts/get-contributing.sh syncs that content into the website, it turns relative links into full GitHub URLs. However, it was treating them as if they started from the repo root, dropping the docs/ part of the path.

My proposed fix is to resolve relative links from the directory of the source file being fetched, then regenerate src/content/pages/en/resources/contributing.mdx. Other locale files aren't touched in this PR since they come from Crowdin, not get-contributing.sh.

Verification

Ran get-contributing.sh from .github/scripts/:

bash-screenshot

Before/after link at /en/resources/contributing/#becoming-a-triager:

after-bash-scshot

Destination on GitHub:

image

@mkco0
mkco0 requested a review from a team as a code owner July 4, 2026 08:00
@netlify

netlify Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploy Preview for expressjscom-preview ready!

Name Link
🔨 Latest commit 5c965b1
🔍 Latest deploy log https://app.netlify.com/projects/expressjscom-preview/deploys/6a49bed25a6bef00083ae9d6
😎 Deploy Preview https://deploy-preview-2427--expressjscom-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 99 (🟢 up 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@bjohansebas
bjohansebas force-pushed the fix/2416-triager-guide-link branch from 6450f04 to 5c965b1 Compare July 5, 2026 02:17
@bjohansebas
bjohansebas merged commit a3a1a64 into expressjs:main Jul 5, 2026
16 checks passed
@bjohansebas

Copy link
Copy Markdown
Member

thanks @mkco0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Triaguer Guide link is broken

2 participants